import request1 from '@/utils/request1'

// 商户查询银行卡列表
export function cardList(query) {
  return request1({
    url: '/com.mmk.member.api.AdminLifeShopWithdrawProvider/1.0.0/listBankCard.html',
    method: 'post',
    data: query
  })
}
// 获取商户提现列表
export function withdrawal(query) {
  return request1({
    url: '/com.mmk.member.api.AdminLifeShopWithdrawProvider/1.0.0/applicationList.html',
    method: 'post',
    data: query
  })
}
// 商户提现详情
export function withdrawalDetail(query) {
  return request1({
    url: '/com.mmk.member.api.AdminLifeShopWithdrawProvider/1.0.0/applicationDetail.html',
    method: 'post',
    data: query
  })
}
// 商户提现申请确定
export function withdrawalSure(query) {
  return request1({
    url: '/com.mmk.member.api.AdminLifeShopWithdrawProvider/1.0.0/withdrawalApplication.html',
    method: 'post',
    data: query
  })
}
// 获取验证码
export function getCode(query) {
  return request1({
    url: '/com.mmk.reservation.api.AdminMsgProvider/1.0.0/sendMsgCommon.html',
    method: 'post',
    data: query
  })
}
// 商户提现导出
export function cashExport(query) {
  return request1({
    url: '/com.mmk.member.api.AdminLifeShopWithdrawProvider/1.0.0/export.html',
    method: 'post',
    data: query,
    responseType: 'blob'
  })
}
// 提现驳回信息
export function rejeceMsg(query) {
  return request1({
    url: '/com.mmk.member.api.AdminLifeShopWithdrawProvider/1.0.0/reject.html',
    method: 'post',
    data: query
  })
}
// 获取银行卡
export function getBank(query) {
  return request({
    url: '/com.mmk.pay.api.OpenBankCodeProvider/1.0.0/bankDropdownList.html',
    method: 'post',
    data: query
  })
}
// 验证正确的验证码
export function verifyCode(query) {
  return request1({
    url: '/com.mmk.reservation.api.AdminMsgProvider/1.0.0/checkVerify.html',
    method: 'post',
    data: query
  })
}
